<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>人才储备库</title>
     <link rel="shortcut icon" href="favicon.ico"> 
     <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
     <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/style1.min.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
        <volist name="rs_hrreserves" id="val_hrreserves">
        <!--年龄计算-->
        <php>
            $nowyear=date("Y");
            $pyear=explode("-",$val_hrreserves["hrBirthdate"]);
            $age=$nowyear-$pyear[0];

        </php>
        <!--学历的处理-->
        <php> 
            $xueliInfo="";
            $xueliId=$val_hrreserves["hrDegrees"];
            $variables=M("variables");
            $rs_variables=$variables->where("vId=1")->find();
            $xueli=explode("|",$rs_variables["vVariablesVal"]);
            foreach($xueli as $key=>$valxueli){ if($key==$xueliId){
            $xueliInfo=$valxueli; } } 
        </php>

        <!--应聘职位的处理-->
            <php> 
            $zhiwuInfo="";
            $zhiwuId=$val_hrreserves["hrDuties"];
            $variables=M("variables");
            $rs_variables=$variables->where("vId=3")->find();
            $zhiwu=explode("|",$rs_variables["vVariablesVal"]);
            foreach($zhiwu as $key=>$valzhiwu){ if($key==$zhiwuId){
            $zhiwuInfo=$valzhiwu; } } 
            </php>

        <!--待遇的处理-->
        <if condition="$val_hrreserves.hrBirthdate neq null AND $val_hrreserves.hrSalary neq null">
            <div class="col-sm-4">
                <div class="contact-box">
                    <a href="__URL__/main/hrId/<{$val_hrreserves.hrId}>">
                        <div class="col-sm-4">
                            <div class="text-center">
                            <if condition="$val_hrreserves.hrPhoto eq null"> 
                                <if condition="$val_hrreserves.hrSex eq 1"> 
                                   <img style="height:140px;" alt="image" class="img-circle m-t-xs img-responsive" src="__PUBLIC__/Theme1/img/hrsex_1.png" />
                                <else /> 
                                   <img style="height:140px;" alt="image" class="img-circle m-t-xs img-responsive" src="__PUBLIC__/Theme1/img/hrsex_2.png" />
                                </if> 
                            <else /> 
                                <img style="height:140px;" alt="image" class="img-circle m-t-xs img-responsive" src="__ROOT__/<{$val_hrreserves.hrPhoto}>" />
                            </if>

                                <div class="m-t-xs font-bold"></div>
                            </div>
                        </div>
                        <div class="col-sm-8">
                            <h3><strong><{$val_hrreserves.hrName}></strong></h3>
                            <p><i class="fa fa-map-marker"></i> <if condition="$val_hrreserves.hrSex eq 1">男 <else/>女 </if> <{$val_hrreserves.hrHeight}>CM</p>
                            <address>
                            学历：<strong><{$xueliInfo}></strong><p></p>
                            电话：<{$val_hrreserves.hrTel}><p></p>
                            生日：<a href=""><{$val_hrreserves.hrBirthdate}></a>
                            <abbr title="年龄按虚岁计算">现年:</abbr>  <{$age}> 岁<p></p>
                            应聘岗位：<span style="color:#ff0000"><{$zhiwuInfo}></span> <if condition="$val_hrreserves.hrSalary neq 0">期望月薪：<span style="color:#ff0000"><{$val_hrreserves.hrSalary}>元 </span><else/>月薪要求：<span style="color:#0000ff">不限/面议</span></if>
                        </address>
                        </div>
                        <div class="clearfix"></div>
                    </a>
                </div>
            </div>
            </if>
        </volist>

          
        </div>
    </div>

    <!-- 全局js -->
    <script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- 自定义js -->
    <script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>

    <script>
        $(document).ready(function () {
            $('.contact-box').each(function () {
                animationHover(this, 'pulse');
            });
        });
    </script>

</body>

</html>
